package com.atguigu.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author ming
 * @create 2022/5/3
 * @description:
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {
    @Override
    /**
     * 视图映射 路径映射默认都是get方式 
     */
    public void addViewControllers(ViewControllerRegistry registry) {
     //   registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
